package com.example.service;

import com.example.Dto.*;
import com.example.Vo.LikeEachOtherVo;
import com.example.Vo.LoginVo;
import com.example.Vo.UserAnswerVo;
import com.example.pojo.User;
import com.example.pojo.UserAnswerProblem;
import com.example.pojo.UserLike;

import java.text.ParseException;
import java.util.List;

/**
 * @author liguoping
 */
public interface UserService {
    boolean sendMsg(UserDto userDto);

    LoginVo login(UserCodeDto userCodeDto);

    boolean updateUser(User user) throws ParseException;

    boolean updatePhoneSendMsg(UserCodeDto userCodeDto);

    boolean updatePhone(String NewPhone);

    boolean addProblem(UserProblemDto userProblemDto);

    boolean addAnswerProblem(UserAnswerProblemDto userAnswerProblemDto);

    UserAnswerVo findAnswerProblemById();

    boolean updateInstall(Integer like, Integer comment, Integer announcement);

    boolean setLike(UserLikeDto userLikeDto);

    List<LikeEachOtherVo> getLikeEachOther(String id);

    boolean cancelLike(String likeId);

    List<LikeEachOtherVo> getLike();

    List<LikeEachOtherVo> getFans();
}
